package com.ruoyi.scene.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 现场巡查问题记录业务对象 scene_inspection_issue_recording
 *
 * @author llb
 * @date 2024-10-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SceneInspectionIssueRecordingBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 巡查id
     */
    @NotNull(message = "巡查id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long inspectionId;

    /**
     * 1:整改，2:复查
     */
    private String type;

    /**
     * 整改人或复查人
     */
    private String personnel;

    /**
     * 整改内容或者复查内容
     */
    private String content;

    /**
     * 整改时间或复查时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date date;

    /**
     * 结果
     */
    private String outcome;

    /**
     * 附件id
     */
    private String fileId;

    /**
     * 审批状态
     */
    private String approvalStatus;


    private Set<Long> fileNos;


    private Set<Long> fileNoOld;


}
